package net.uhuijia.user.userverifycode.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import net.uhuijia.appbase.service.BaseService;
import net.uhuijia.user.userverifycode.persistence.model.UserVerifycode;
import net.uhuijia.user.userverifycode.persistence.model.UserVerifycodeExample;


@Service
@Transactional
public interface UserVerifycodeService
     extends BaseService<UserVerifycode,UserVerifycodeExample> {

	/**
	 * 验证手机号码与验证码是否正确，如果正确返回true，反之为false
	 * @param phone
	 * @param code
	 * @return
	 * @author 许小宝
	 */
	boolean isEffectiveCode(String phone, String code);

	/**
	 * 发送验证码（辰希公司）
	 * @param phone
	 */
	String sendCodeByCx(String phone);
}